﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.SurveyResultAndSeminarViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> - Reporter Management Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Reporter Management Page: <%= Model.TargetArea.TargetAreaCode%> - <%= Model.TargetArea.TargetAreaCenter%></h1>
    <fieldset>
    <legend> Surveys</legend>
<ul class="elements-list">
        <li class="first">
            <div class="cell350 flota">Name</div>
            <div class="cell110 flota_der"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>

    <% foreach (var item in Model.SurveyResults) {%>

        <li>
            <div class="cell350 flota lista_link">
                Survey <%= item.Survey.SurveyOrdinal + " - " + item.Survey.SurveyYear + " - " + item.Survey.SurveyPeriod %>
            </div>
            <div class="enlaces flota_der">
                <%= Html.ActionLink("FILL IN", "Edit", "SurveyResult", new { id = item.SurveyResultsID }, null)%>
                <%= Html.ActionLink("View data", "Details", "SurveyResult", new { id = item.SurveyResultsID }, null)%>
            </div> 
        </li>    
    <% } %>

    </ul>    </fieldset>
    
    
<fieldset>
   <legend>EOD Seminars</legend>
    <ul class="elements-list">
        <li class="first">
            <div class="cell110 flota">Code</div>
            <div class="cell110 flota">Date</div>
            <div class="cell110 flota">City</div>
            <div class="cell110 flota">Center</div>
            <div class="cell110 flota_der"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>

    <% foreach (var item in Model.Seminars) {%>

        <li>
            <div class="cell110 flota lista_link">
                <%= item.SeminarCode %>
            </div>
            <div class="cell110 flota lista_link">
                <%= item.FriendlyDate %>
            </div>
            <div class="cell110 flota lista_link">
                <%= item.SeminarCity %>
            </div>
            <div class="cell110 flota lista_link">
                <%= item.SeminarCenter %>
            </div>
            <div class="enlaces flota_der">
            <%= Html.ActionLink("ENTER", "Details", "Seminar", new { id = item.SeminarID }, null)%> 
                <%= Html.ActionLink("Edit details", "Edit", "Seminar", new { id = item.SeminarID }, null)%>
               
            </div> 
        </li>    
        
    <% } %>

    </ul>
    
         <div class="enlaces">
        <%= Html.ActionLink("Create new seminar", "Create", "Seminar", new { targetAreaID = Model.TargetArea.TargetAreaID }, null )%>
    </div>

    </fieldset>



    
</asp:Content>

